<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>智能问答</title>			
		<link rel="stylesheet" href="layui/css/layui.css" media="all">
		<script src="js/jquery-3.1.1.min.js"></script>
		<script src="layui/layui.js"></script>
		<script src="layui/lay/modules/form.js"></script>
		<script src="layui/lay/modules/upload.js"></script>
	</head>
	<body>
		<form class="layui-form" action="">
			<div class="layui-form-item">
				<label class="layui-form-label">智能问答</label>
				<input checked="" lay-skin="switch" type="checkbox">
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">人脸识别</label>
				<input checked="" lay-skin="switch" lay-skin="switch" lay-filter="switchTest" type="checkbox">
			</div>			
		</form>
		<input id="face" class="layui-upload-file" lay-title="上传人脸照片和姓名" type="file"> 
	</body>
	<script>
		layui.use('upload', function(){
			layui.upload({
				url: '',
				elem: '#face', //指定原始元素，默认直接查找class="layui-upload-file"
				method: 'get', //上传接口的http类型
				success: function(res){
		      
		    	}
		  	});
		});
	</script>
</html>
